package com.neusoft.bean;

public class PageInfo {
	
	//这个实体类用来分页
	
	private int pageStart;
	
	private int pageIndex;
	
	private int pageSize;
	

	public int getPageStart() {
		return pageStart;
	}

	public void setPageStart(int pageStart) {
		this.pageStart = pageStart;
	}

	public int getPageIndex() {
		return pageIndex;
	}

	public void setPageIndex(int pageIndex) {
		this.pageIndex = pageIndex;
		this.pageStart = (this.pageIndex - 1) * this.pageSize;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
		this.pageStart = (this.pageIndex - 1) * this.pageSize;
	}
	
	

}
